package com.cskaoyan.market.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * @Author: chenjian
 * @Date: 2024/5/21 15:47
 */
@Component
public class WebConfig {
    @Bean
    public MultipartResolver multipartResolver(){
        return new CommonsMultipartResolver();
    }
}
